Aviation API
4 Take Off Data (TOD)
This is the hourly forecast data of wind, temperature and pressure for the selected airport locations.
4.1 Location
4.1.1 Description:
These calls respond with take-off data for airlines at specific locations in New Zealand. Valid location codes are NZAA, NZWN, NZCH, NZDN, NZPM, NZHN, and YBCG.
4.1.2 API Call:
GET /aviation/tod/{location}/
4.1.3 Path Parameter:
Parameter | Example | Description |
---|---|---|
Location | NZWN | Valid ICAO location codes as defined in description above. The ICAO code must be uppercase. This path parameter is Mandatory. |
4.1.4 Example:
This example would return the hourly forecast data of wind, temperature and pressure for Wellington airport.
GET /aviation/tod/NZWN
4.1.5 API Response:
{
"version":"1.0",
"issue-time":"2018-03-05T00:42:31Z",
"path":"/tod/NZWN",
"response":[
{
"av:tod-location":"NZWN",
"met:product-name":"tod",
"met:domain":"aviation",
"met:valid-at":"2018-02-09T10:00:00Z",
"met:data":"nzwn,201802091000,00507,19,1014\n nzwn,201802091100,01506,19,1014\n
nzwn,201802091200,02005,19,1015\n nzwn,201802091300,01505,19,1015\n
nzwn,201802091400,01505,19,1015\n nzwn,201802091500,01504,19,1014\n
nzwn,201802091600,02006,19,1014\n nzwn,201802091700,02008,19,1014\n
nzwn,201802091800,02009,19,1014"
}
]
}